#include "qfuncx.h"
#include "qfuncxplugin.h"

#include <QtCore/QtPlugin>

QFuncXPlugin::QFuncXPlugin(QObject *parent)
    : QObject(parent)
{
    m_initialized = false;
}

void QFuncXPlugin::initialize(QDesignerFormEditorInterface * /* core */)
{
    if (m_initialized)
        return;

    // Add extension registrations, etc. here

    m_initialized = true;
}

bool QFuncXPlugin::isInitialized() const
{
    return m_initialized;
}

QWidget *QFuncXPlugin::createWidget(QWidget *parent)
{
    return new QFuncX(parent);
}

QString QFuncXPlugin::name() const
{
	return QLatin1String("QFuncX");
}

QString QFuncXPlugin::group() const
{
    return QLatin1String("");
}

QIcon QFuncXPlugin::icon() const
{
    return QIcon();
}

QString QFuncXPlugin::toolTip() const
{
    return QLatin1String("");
}

QString QFuncXPlugin::whatsThis() const
{
    return QLatin1String("");
}

bool QFuncXPlugin::isContainer() const
{
    return false;
}

QString QFuncXPlugin::domXml() const
{
	return QLatin1String("<widget class=\"QFuncX\" name=\"qFuncX\">\n</widget>\n");
}

QString QFuncXPlugin::includeFile() const
{
	return QLatin1String("qfuncx.h");
}

Q_EXPORT_PLUGIN2(qfuncxplugin, QFuncXPlugin)
